﻿<?php
if(isset($_GET['source'])):
  highlight_file(__FILE__);
  exit;
endif;
?>
<!-- page code starts here -->
<?php
ini_set('zend.ze1_compatibility_mode',0);
require_once '../js/FWC/php/SmartSelect.class.php';
$FWC = SmartSelect::getInstance();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SmartSelect 2  // xml javascript combo box toolkit library</title>
<script language="JavaScript" src="../js/prototype.js"></script>
<script language="JavaScript" src="pagescript.js"></script>
<script>window.fwcpath = '../js';</script>
<script language="JavaScript" src="../js/FWC/js/sselect.js"></script>
<style>
body {overflow:auto;margin:10px;font-family:Verdana;font-size:11px;}
.tourEachB {width:100%;height:18px;font-size:10px;font-family:Verdana;color:#333333;}
</style>
</head>
<body>
<h2 align="center">FWC:SmartSelect 2<span style="color:#FEC2C2;"> // xml javascript combo box toolkit library</span></h2>
<h4 align="center">version 2.6 (php-loading)</h4>
<i>...свободно распространяемая библиотека, позволяющая максимально просто создавать<br/>многофункциональные кроссплатформенные псевдо-SELECT-списки (combobox).</i>

<br/></br>
<center>
<a href="/fwc/ru" style="font-size:16px;color:blue;font-weight:bold;">&rarr; на сайт библиотеки &larr;</a>
<br/><a href="?source" style="font-size:12px;color:blue;">&rarr; исходный код страницы &larr;</a>
<br/><a href="sselect.html" style="font-size:12px;color:blue;">&rarr; к примерам на JavaScript &larr;</a>

<br/>
<hr/>
<br/><br/>
<table width="600" border="0">
<tr height="50" valign="top">
<td colspan="3" align="center">стандарный тег SELECT:
<select>
<option>Александр
<option>и т.д.
</select>
<br/><br/>
<h4>SmartSelect-списки:</h4>
</td>
</tr>
<tr style="height:100px;">
<td colspan="2" valign="top">
<form action="printVal.php" onsubmit="opt_names.value4form();">
<?php echo $FWC->newSmartSelect('names.xml'); ?>
<input type="button" value="php json load" onclick="opt_names.loadOptions_PHP(null,null,'myajax.php','get',{datatype:'array'},function() {opt_names.showHideOptions('show');});"/>
<input type="button" value="php xml load" onclick="opt_names.loadOptions_PHP(null,null,'myajax.php','get',null,function() {opt_names.showHideOptions('show');});"/>
<br/><input type="submit" value="submit"/>
</form>
</td>
<td valign="top">
<?php echo $FWC->newSmartSelect('sites.xml'); ?>
<input type="button" value="add (first)" onclick='sel_sites.addOption("[\"FWC:SmartSelect\",\"alx.vingrad.ru/fwc\",{\"style\":\"font-weight:bold;\"}]",0)'>
<input type="button" value="remove (4)" onclick="sel_sites.removeOption(4)">
<input type="button" value="edit (last)" onclick='sel_sites.editOption("[\"HelloWorld.com\",\"helloworld.com\",{\"style\":\"color:green;\"}]")'></td>
</tr>
<tr>
<td valign="top">
<?php echo $FWC->newSmartSelect('continents.xml'); ?>
<input type="button" value="select (few)" onclick="selOption();">
</td>
<td align="left"><span style="font-size:10px;">loadOptions_PHP()</span> &rarr;</td>
<td valign="top"><?php echo $FWC->newSmartSelect('countries.xml'); ?></td>
</tr>
<tr>
<td valign="top" colspan="3" style="padding-top:45px;">
<?php echo $FWC->newSmartSelect('[["Option 1","val"],["Option 2","val1"],["Option 3"]]','{"id":"tesst","skin":"ss_alx","size":40,"readonly":"true","multiple":"true","hidespeed":20}');?>
</td>
</tr>
</table>
<br/><br/><br/><br/>
<hr/>
&copy; 2007 - Alexander Zinchuk, <a href="http://flyweb.in/" target="_blank">FlyWeb</a>.
</center>
</body>
</html>

<!-- page code ends here -->
